package com.example.peanutsubway.dao;


import com.example.peanutsubway.entity.BookInfo;
import com.example.peanutsubway.entity.BookType;

import com.example.peanutsubway.util.PageInfo;

import java.util.List;

/**
 * @Author：zzt
 * @Version：1.0
 * @Date：2021/10/12-10:10
 * @Since:jdk1.8
 * @Description:
 */
public interface BookInfoDao {
    List<BookInfo> findAllBook(BookInfo bookInfo, PageInfo pageInfo);
    List<BookType> findAllBookParentType();
    List<BookType> findAllBookSonType(Integer id);

    Integer count(BookInfo bookInfo);
    Boolean updateBookInfo(BookInfo bookInfo);
    Boolean deleteBookSonType(Integer id);
    Boolean addBookInfo(BookInfo bookInfo);
}
